<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<title>添加友情链接</title>

<link rel="stylesheet" type="text/css" href="__PUBLIC__/skin/admin/css/base.css">

</head>

<body leftmargin="8" topmargin="8" background='__PUBLIC__/skin/images/allbg.gif'>



<!--  快速转换位置按钮  -->

<table width="98%" border="0" cellpadding="0" cellspacing="1" bgcolor="#D1DDAA" align="center">

<tr>

 <td height="26" background="__PUBLIC__/skin/images/newlinebg3.gif">

  <table width="98%" border="0" cellspacing="0" cellpadding="0">

  <tr>

  <td align="center"><strong>添加友情链接</strong></td>

 </tr>

</table>

</td>

</tr>

</table>
<script type="text/javascript" language="javascript"
	src="__TMPL__skin/js/jquery.js"></script>
<script>
  $(document).ready(function () {
					$("#province").change(function(){
						  var id = $(this).val();
						   if(id == 0){
							     $("#city").html(""); 
							   $("#city").append(' <option value="0" >全部城市</option>');
							  return false;   
							}
						   var url = "{:U('Ads/getcity',array('id'=>'"+id+"'))}";
						    //alert(url);
						   $.get(url,function(data){
							 
							     $("#city").html(""); 
								 for(var i=0;i<data.length;i++){
									 
									
							       $("#city").append(' <option value="'+data[i].id+'" >'+data[i].city+'</option>');
								 }
							   },"json");
						
						});
});
		
</script>

  

<!--  内容列表   -->

<form name="form2" action="" method="post">

  <table width="98%" border="0" align="center" cellspacing="1" bgcolor="#D1DDAA">

  <tr>

    <td width="100" height="28" bgcolor="#FFFFFF">&nbsp;网站名称：</td>

    <td bgcolor="#FFFFFF"><input name="title" type="text" id="title" style="height:22px; width:200px;"></td>

  </tr>
	<tr>
		<td width="100" height="25" bgcolor="#FFFFFF">&nbsp;选择城市：</td>
		<td bgcolor="#FFFFFF"><select id="province" name="province"
			style="width: 100px">
              <option value="0" selected="selected">全部城市</option>
			<volist name="province" id="v">
          
			<if condition="$v['id'] eq $pid ">
			<option value="{$v['id']}" selected="selected">{$v['province']}</option>
			<else />
			<option value="{$v['id']}">{$v['province']}</option>
			</if>
			</volist>

		</select> 
        
        <select id="city" name="city" style="width: 100px">
          <option value="0" selected="selected">全部城市</option>
			
		</select></td>
	</tr>


  <tr>

    <td height="28" bgcolor="#FFFFFF">&nbsp;网站地址：</td>

    <td bgcolor="#FFFFFF"><input name="weburl" type="text" id="weburl"  style="height:22px; width:400px;" value="http://"></td>

    </tr>

  <tr>

    <td height="28" bgcolor="#FFFFFF">&nbsp;网站介绍：</td>

    <td bgcolor="#FFFFFF"><textarea name="description" id="description" style="height:200px; width:400px;"></textarea></td>

  </tr>



  <tr>

    <td height="25" bgcolor="#FFFFFF">&nbsp;网站状态：</td>

    <td bgcolor="#FFFFFF"><select name="status" id="status">

	<option value="1">启用</option>

	<option value="0">禁用</option>

    </select>

    </td>

  </tr>

  <tr>

    <td height="25" bgcolor="#FFFFFF">&nbsp;</td>

    <td bgcolor="#FFFFFF"><input type="submit" name="submit" value="提交" id="submit"></td>

  </tr>



</table>

</form>





<table width='98%'  border='0' cellpadding='1' cellspacing='1' bgcolor='#CBD8AC' align="center" style="margin-top:8px">

  <tr bgcolor='#EEF4EA'>

    <td background='skin/images/wbg.gif' align='center'>&nbsp;</td>

  </tr>

</table>



</body>

</html>